package com.zhb.cloud.exception;

import com.zhb.cloud.utils.Result;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @ClassName: ServiceException
 * @Description: 服务异常
 * @author: zhb1316783262@163.com
 * @date: 2019年1月29日下午5:41:26
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class ServiceException extends RuntimeException {
	private static final long serialVersionUID = -8060119961511478818L;
	private Result result;

	public ServiceException(Result result) {
		super();
		this.result = result;
	}

	public ServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public ServiceException(String message, Throwable cause) {
		super(message, cause);
	}

	public ServiceException(String message) {
		super(message);
	}

	public ServiceException(Throwable cause) {
		super(cause);
	}

}
